<?php
namespace app;
/**
 * 
 * 头
 * 
 * */
class HeadComponent {
	public function __construct() {

	}

	static function render($title = '欢迎使用') {
		$result = '<!DOCTYPE html>
			<html>
			<head>
			    <meta charset="utf-8">
			    <meta name="viewport" content="width=device-width, initial-scale=1">
			    <!-- CSS -->
			    <link href="/css/bootstrap.min.css" rel="stylesheet">
			    <!-- jQuery and JavaScript Bundle with Popper -->
			    <script src="/js/jquery.slim.min.js"></script>
			    <script src="/js/bootstrap.bundle.min.js"></script>
			    <script src="/js/sweetalert2.js"></script>
			    <title>'
			   	. $title .
			    '</title>
			</head>
		';
		return $result;
	}
}